package io.renren.bean;

import java.util.List;

/**
 * 处理考试题目
 * <p>
 * ClassName: ExamQuestionInfo
 *
 * @author yzw
 * @Description: TODO
 * @date 2017年7月31日
 */
public class ExamQuestionInfo {

    private Integer examId; // 考试id
    private Integer remainExamSecond; // 当前试卷考试剩余时间（秒）
    private Integer sumQuestionNumber; // 当前试卷总题数
    private Integer answerNumber; // 当前试卷已答题数量
    private Integer state; // 1表示未开始，2表示考试中，3表示已交卷
    private List<QuestionInfo> questionInfoList; // 问题list

    public Integer getExamId() {
        return examId;
    }

    public void setExamId(Integer examId) {
        this.examId = examId;
    }

    public Integer getRemainExamSecond() {
        return remainExamSecond;
    }

    public void setRemainExamSecond(Integer remainExamSecond) {
        this.remainExamSecond = remainExamSecond;
    }

    public Integer getSumQuestionNumber() {
        return sumQuestionNumber;
    }

    public void setSumQuestionNumber(Integer sumQuestionNumber) {
        this.sumQuestionNumber = sumQuestionNumber;
    }

    public Integer getAnswerNumber() {
        return answerNumber;
    }

    public void setAnswerNumber(Integer answerNumber) {
        this.answerNumber = answerNumber;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public List<QuestionInfo> getQuestionInfoList() {
        return questionInfoList;
    }

    public void setQuestionInfoList(List<QuestionInfo> questionInfoList) {
        this.questionInfoList = questionInfoList;
    }

    public class QuestionInfo {
        private Integer sort; // 当前题号
        private Integer questionId; // 题目id
        private Integer optionType;// 选项类型；1表示单选，2表示多选，3表示判断
        private Integer questionType;// 题目类型；1代表普通题目（题目和选项都没有图片）；2代表仅仅题目有图片；3代表仅仅选项有图片；4代表题目有视频
        private String questionContent;// 题目内容
        private String questionImageUrl;// 题目图片地址
        private String questionVideoUrl;// 题目视频地址
        private Boolean isCollection; // true表示已收藏，false表示未收藏
        private Boolean isSubmit;// true表示已提交当前题目，false表示未提交当前题目
        private Boolean isTrue; // 正确状态，true表示正确，false表示错误（只有提交该试卷后才可以查看）
        private String studentAnswer; // 学员答案
        private String trueAnswer;// 正确答案（只有提交该试卷后才可以查看）
        private String remark; // 备注（可以是对该题目的解释）
        private List<ExamQuestionInfo.QuestionInfo.OptionInfo> optionInfoList; // 选项list

        public Integer getSort() {
            return sort;
        }

        public void setSort(Integer sort) {
            this.sort = sort;
        }

        public Integer getQuestionId() {
            return questionId;
        }

        public void setQuestionId(Integer questionId) {
            this.questionId = questionId;
        }

        public Integer getOptionType() {
            return optionType;
        }

        public void setOptionType(Integer optionType) {
            this.optionType = optionType;
        }

        public Integer getQuestionType() {
            return questionType;
        }

        public void setQuestionType(Integer questionType) {
            this.questionType = questionType;
        }

        public String getQuestionContent() {
            return questionContent;
        }

        public void setQuestionContent(String questionContent) {
            this.questionContent = questionContent;
        }

        public String getQuestionImageUrl() {
            return questionImageUrl;
        }

        public void setQuestionImageUrl(String questionImageUrl) {
            this.questionImageUrl = questionImageUrl;
        }

        public String getQuestionVideoUrl() {
            return questionVideoUrl;
        }

        public void setQuestionVideoUrl(String questionVideoUrl) {
            this.questionVideoUrl = questionVideoUrl;
        }

        public Boolean getIsCollection() {
            return isCollection;
        }

        public void setIsCollection(Boolean isCollection) {
            this.isCollection = isCollection;
        }

        public Boolean getIsSubmit() {
            return isSubmit;
        }

        public void setIsSubmit(Boolean isSubmit) {
            this.isSubmit = isSubmit;
        }

        public Boolean getIsTrue() {
            return isTrue;
        }

        public void setIsTrue(Boolean isTrue) {
            this.isTrue = isTrue;
        }

        public String getStudentAnswer() {
            return studentAnswer;
        }

        public void setStudentAnswer(String studentAnswer) {
            this.studentAnswer = studentAnswer;
        }

        public String getTrueAnswer() {
            return trueAnswer;
        }

        public void setTrueAnswer(String trueAnswer) {
            this.trueAnswer = trueAnswer;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public List<ExamQuestionInfo.QuestionInfo.OptionInfo> getOptionInfoList() {
            return optionInfoList;
        }

        public void setOptionInfoList(
                List<ExamQuestionInfo.QuestionInfo.OptionInfo> optionInfoList) {
            this.optionInfoList = optionInfoList;
        }

        public class OptionInfo {
            private String optionLetter; // 选项字母
            private String optionContent; // 选项内容
            private String optionImageUrl; // 选项图片

            public String getOptionLetter() {
                return optionLetter;
            }

            public void setOptionLetter(String optionLetter) {
                this.optionLetter = optionLetter;
            }

            public String getOptionContent() {
                return optionContent;
            }

            public void setOptionContent(String optionContent) {
                this.optionContent = optionContent;
            }

            public String getOptionImageUrl() {
                return optionImageUrl;
            }

            public void setOptionImageUrl(String optionImageUrl) {
                this.optionImageUrl = optionImageUrl;
            }

        }
    }

}
